package com.lei.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName TarfetController
 * @Description TODO
 * @Author Admin
 * @Date 2021/9/1 16:33
 * @Version 1.0
 */

    @Controller
    @RequestMapping("user")
    public class TarfetController  {
    @RequestMapping("quick1")
    public ModelAndView save(){
        System.out.println("目标方法运行....");
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.addObject("name","雷锋");
        modelAndView.setViewName("succeed");
        return modelAndView;
    }
}
